package com.chc.web.fee_park.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chc.valid.listValue;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/01/19/14:40
 * @Description:
 */
@Data
@TableName("fee_park")
public class FeePark implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long parkFeeId;
    //租户id
    private Long userId;
    //车位id
    @NotNull(message = "该id不能为空")
    private Long parkId;
    //所属月份
    @NotBlank
    private String payParkMonth;
    //缴费金额
    @NotNull
    private BigDecimal payParkMoney;
    //缴费状态
    @NotBlank
    @listValue(values = {"1","0"}) //字段只能是0或1
    private String payParkStatus;
    //缴费时间
    private Date payParkTime;
    //数据库没有的字段需要排除
    @TableField(exist = false)
    private String loginName;
    @TableField(exist = false)
    private String phone;
    @TableField(exist = false)
    private String parkName;
    @TableField(exist = false)
    private String parkType;
}
